package cn.example.vip.mall.permission.mapper;

import cn.example.vip.mall.permission.entity.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;


public interface PermissionMapper extends BaseMapper<Permission> {
	
	/**
	 * 查询所有角色的权限映射关系
	 * @return
	 */
	@Select("SELECT * FROM role_permission")
	List<Map<Integer, Integer>> allRolePermission();
}
